package com.usian.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@org.springframework.stereotype.Controller
public class HelloWorld {

    @RequestMapping("/hello")
    @ResponseBody
    public Map<String, String> hello(){
        System.out.println("helloworld");
        Map<String, String> map=new HashMap<>();
        map.put("msg","helloworld");
        return map;
    }

    public void test(){
        System.out.println("============22222==========");
        System.out.println("===========111111===========");
    }
}
